﻿<%@ Page Language="C#"  Inherits="WebSys.UI.ZhengShou.OfficeFlow.priority_main" %>

<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>设置优先级</title>
    <link href="../../Themes/Default/Styles/basic.css" rel="stylesheet" type="text/css" />  
    <script type="text/javascript">
        function seach() {
            var s = document.getElementById("<%=start_time.ClientID %>");
            var e = document.getElementById("<%=end_time.ClientID %>");
            if (s.value != "" && e.value != "") {
                if (s.value > e.value) {
                    alert("开始时间不能大于结束时间");
                    return false
                }
            }
            return true;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table class="gridtable" width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>            
            <td>
                开始时间：<CBW:MPCalendar  runat="server" ID="start_time"/>
                结束时间：<CBW:MPCalendar  runat="server" ID="end_time"/>
                业务类型：<asp:DropDownList runat="server" ID="ddltype" AutoPostBack="true"></asp:DropDownList>
                申请单位：<asp:TextBox runat="server" ID="danwei"></asp:TextBox>        
                <asp:Button  runat="server" ID="button1" Text="查询" OnClientClick="return seach()"/>                
            </td>
        </tr>
    </table>
    <CBW:CustomGridView runat="server" ID="gv" AutoGenerateColumns="false" AllowPaging="true" PageSize="15" ShowItemNumber="true"
     CssClass="gridtable"  OnOnLoadData="gv_OnLoadData" OnRowDataBound="gv_RowDataBound" Width="100%">
        <Columns>
              <asp:BoundField HeaderText="案件编号" DataField="顺序号" />
        <asp:BoundField HeaderText="流程类型" DataField="案件类型" />
        <asp:BoundField HeaderText="申请单位" DataField="申请单位" />
        <asp:BoundField HeaderText="接收时间" DataField="接收时间" />
        <asp:TemplateField HeaderText="处理">
            <ItemTemplate>
                <asp:DropDownList runat="server" ID="ddlyxj" AutoPostBack="true" OnSelectedIndexChanged="ddlyxj_SelectedIndexChanged" >
                     <asp:ListItem Value="0"  style="color:black">普通</asp:ListItem>
                    <asp:ListItem Value="1" style="color:blue" >加急</asp:ListItem>
                    <asp:ListItem Value="2" style="color:red">特急</asp:ListItem>                    
                </asp:DropDownList>
            </ItemTemplate>
        </asp:TemplateField>
        </Columns>
    </CBW:CustomGridView>
    </div>
    </form>
</body>
</html>
